list1 = [1,2,3,4,5]
for i in range(len(list1)):
    print(list1[i],end=' ')
    print()
    print('-------------------')
    for i in list1:
        print()
        print('-------------------')
    list2 = [8,9]
    list1.extend(list2)
    print(list1)
    print(list2)
    list1.insert(2,66)
    print(list1)
    list1.sort()
    list1.reverse()
    print(list1)
    list1.sort(reverse=True)

    list3 =[14,22,3,4,5]
    list4=sorted(list3)
    print(list3)
    print(list4)

    num = list4.pop()
    print(num)